#pragma once
#include "SDL.h"
#include "SDL_image.h"
#include <vector>
#include <stdlib.h>
class bidimensional_vector{
	public:
		bidimensional_vector(SDL_Point p1, SDL_Point p2): _x(p2.x - p1.x), _y(p2.y - p1.y){}

		double x(){ return _x; };
		double y(){ return _y; };


	private:
		double _x, _y;

};

class collision {
	//                 p1
	//        tile_p1______ tile_p2
	//              |  /\  |
	//              | /  \ |
	//           p4 |/    \| p2
	//              |\    /|
	//              | \  / |
	//              |__\/__|
	//       tile_p4   p3   tile_p3
	public:
		collision(SDL_Point p1, SDL_Point p2, SDL_Point p3, SDL_Point p4);
		
		bool is_point_inside(SDL_Point p);

	private:
		std::vector<float> _pos_x;
		std::vector<float> _pos_y;

		SDL_Point _p1, _p2, _p3, _p4;
};
